<extend name="Public:Base" />
<block name="title">
    <title>锁掌柜 - APP使用管理</title>
</block>
<block name="extendHead">
</block>
<block name="document">
    <div id="doc" data-side-menu-id="sideMenuAppIndex" data-side-menu-toggle-id="collapseAppToggle">
        <div id="doc-header">
            <include file="Public:Include_navbar" />
        </div>
        <div id="doc-center">

            <div class="container">
                <div class="col-xs-3-15">
                    <include file="Public:Include_sideMenu" />
                </div>
                <div class="col-xs-12-15">
                    <nav class="navbar navbar-default navbar-custom-fitin">
                        <div class="container-fluid">
                            <p class="navbar-text custom-navber-text">APP使用管理</p>
                        </div>
                    </nav>
                    <nav class="navbar navbar-default navbar-custom-fitin nav-padding">
                        <div class="container-fluid">
                            <div class="collapse navbar-collapse">
                               
                                    <div class="form-group">
                                        <label class="col-xs-1 control-label">客栈名称</label>
                                        <div class="col-xs-2">
                                            <input type="text" value="" class="form2-control col-xs-6" name="hotelName" id="hotelName" />
                                        </div>
                                        <div class="col-xs-2">
                                            <a id="btn_search" href="javascript:void(0);" class="btn btn-default btn-sm  glyphicon glyphicon-search" >查找</a>
                                        </div>
                                    </div>
                            </div>
                        </div>
                    </nav> 
                    <div class="well well-custom-has-navbar">
                        <div class="well-custom-body">
                            <div class="table-responsive">
                                <table class="table table-bordered table-hover" id="questionTalbe">
                                    <thead>
                                        <tr>
                                            <th>ID</th>
                                            <th>客栈名</th>
                                            <th>状态</th>
                                            <th>到期时间</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <foreach name="hotelAppList" item="vo">
                                        <tr>
                                            <td>{$vo.id}</td>
                                            <td>{$vo.name}</td>
                                            <td>
                                                <if condition="$vo.app_status eq 1">
                                                <span style="color:green">开启</span>
                                                <else/>
                                                <span style="color:red">关闭</span>
                                                </if>
                                            </td>
                                            <td><span style="{$vo.app_dueStyle}">{$vo.app_enddate}</span></td>
                                            <td>
                                            <button data-id="{$vo.id}" data-hotelName="{$vo.name}" data-endDate="{$vo.app_enddate}" data-appStatus="{$vo.app_status}" class="btn btn-default  btn-sm edit">管理</button>
                                            </td>
                                        </tr>
                                    </foreach>
                                    <tr class="padtopx"><td colspan="7">{$page}</td></tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

        <div id="doc-footer">
            <include file="Public:Include_footer" />
        </div>
    </div> 
    
    <div class="modal fade" id="editModel">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">编辑服务</h4>
                </div>
                <div class="modal-body">
                    <div class="form-container">
                        <div class="custom-form-body">
                            <form class="form-horizontal">
                                <div class="form-group">
                                    <label for="requestQuestion" class="col-xs-3 control-label">客栈名称：</label>
                                    <div class="col-xs-6">
                                        <input type="text" class="form-control" id="requestEditHotel"  readonly="readonly">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="requestDesc" class="col-xs-3 control-label">到期时间：</label>
                                    <div class="col-xs-6">
                                        <input type="text" class="form-control" id="requestEditEnddate" style="cursor: pointer;"  >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="requestDesc" class="col-xs-3 control-label">状态：</label>
                                    <div class="col-xs-6">
                                        <label class="checkbox-inline">
		                                <input type="radio" name="requestEditStatus" id="requestEditStatus_on" value="1"> 开启
	                                    </label>
	                                    <label class="checkbox-inline">
		                                <input type="radio" name="requestEditStatus" id="requestEditStatus_off"  value="0"> 关闭
	                                    </label>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <input type="hidden"  id="requestId" value="" />
                    <lable id="saveInfo" style="color:red"></lable>
                    <button type="button" class="btn btn-default" id="requestCannel" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary"  data-value="" id="requestEdit">保存</button>
                </div>
            </div>
        </div>
    </div>
    <!--end of doc-->
</block>

<block name="extendFootJs">
    <script type="text/javascript" src="__PUBLIC__/jslib/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/src/meizhu/common.js"></script>    
    <script type="text/javascript" src="__PUBLIC__/uclbrt/js/jquery-plugin/tooltip.js"></script>
    <script type="text/javascript" src="__PUBLIC__/src/meizhu/App/index.js"></script>
</block>

